package inet.app.vod.db;

import android.content.Context;

public class DaoFactory {
	public static DaoFactory instance;
	private DaoCategory mDaoCategory;
	private DaoVideo mDaoVideo;
	private DaoNew mDaoNew;
	private DaoFun mDaoFun;

	/**
	 * Constructor
	 */
	public DaoFactory(Context context) {
		mDaoCategory = new DaoCategory(context);
		mDaoVideo = new DaoVideo(context);
		mDaoNew = new DaoNew(context);
		mDaoFun = new DaoFun(context);
	}

	/**
	 * Get class instance
	 * 
	 * @param context
	 * @return
	 */
	public static DaoFactory getInstance(Context context) {
		if (instance == null) {
			instance = new DaoFactory(context);
		}
		return instance;
	}

	public DaoCategory getDaoCategory() {
		return mDaoCategory;
	}

	public DaoVideo getDaoVideo() {
		return mDaoVideo;
	}

	public DaoNew getDaoNew() {
		return mDaoNew;
	}

	public DaoFun getDaoFun() {
		return mDaoFun;
	}
	
}